package wsz;

import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
 * @author wsz
 * @date 2021/12/10 20:21
 **/
public class ConsumerTest {
    public static void main(String[] args) throws Exception {

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("dubbo-consumer.xml");
        context.start();
        UserService userService = context.getBean(UserService.class);
        String sayHello = userService.sayHello("qweqweqwe");
        System.out.println(sayHello);
    }
}
